FROM crpi-vpgdmn9ec9inegbj.cn-shanghai.personal.cr.aliyuncs.com/laremehpe/repository:nginx

COPY ./html /usr/share/nginx/html
COPY ./html/nginx_conf/cert /usr/share/nginx/cert
COPY ./html/nginx_conf/nginx.conf /etc/nginx/nginx.conf

RUN rm -rf /usr/share/nginx/html/public/nginx_conf
RUN touch /var/log/nginx/my_access.log
RUN touch /var/log/nginx/my_error.log


CMD ["nginx", "-g", "daemon off;"]
EXPOSE 444

# docker build . -t crpi-vpgdmn9ec9inegbj.cn-shanghai.personal.cr.aliyuncs.com/laremehpe/repository:frontend
